package com.zheng.wechat.mp.dao.model;

import java.io.Serializable;
import java.util.Date;

public class WechatMpActJiugongge implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 活动名称
     *
     * @mbg.generated
     */
    private String title;

    /**
     * 开始时间
     *
     * @mbg.generated
     */
    private Date starttime;

    /**
     * 结束时间
     *
     * @mbg.generated
     */
    private Date endtime;

    /**
     * 背景图
     *
     * @mbg.generated
     */
    private String banner;

    /**
     * 抽奖次数
     *
     * @mbg.generated
     */
    private Integer count;

    /**
     * 入口地址
     *
     * @mbg.generated
     */
    private String hdurl;

    /**
     * 短链接
     *
     * @mbg.generated
     */
    private String shortUrl;

    /**
     * 是否关注可参加(0：否，1：是)
     *
     * @mbg.generated
     */
    private String foucsUserCanJoin;

    /**
     * 是否绑定手机可参加（0：否，1：是）
     *
     * @mbg.generated
     */
    private String bindingMobileCanJoin;

    /**
     * 每日抽奖次数
     *
     * @mbg.generated
     */
    private Integer numPerDay;

    /**
     * 是否中奖可参与 0：中奖可继续参与 1:中奖不可参与
     *
     * @mbg.generated
     */
    private String prizeStatus;

    /**
     * 参与总人数
     *
     * @mbg.generated
     */
    private Integer joinNumLimit;

    /**
     * 公众号原始id
     *
     * @mbg.generated
     */
    private String jwid;

    /**
     * 活动编码
     *
     * @mbg.generated
     */
    private String projectCode;

    /**
     * 创建人
     *
     * @mbg.generated
     */
    private String createBy;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 活动描述
     *
     * @mbg.generated
     */
    private String description;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getBanner() {
        return banner;
    }

    public void setBanner(String banner) {
        this.banner = banner;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getHdurl() {
        return hdurl;
    }

    public void setHdurl(String hdurl) {
        this.hdurl = hdurl;
    }

    public String getShortUrl() {
        return shortUrl;
    }

    public void setShortUrl(String shortUrl) {
        this.shortUrl = shortUrl;
    }

    public String getFoucsUserCanJoin() {
        return foucsUserCanJoin;
    }

    public void setFoucsUserCanJoin(String foucsUserCanJoin) {
        this.foucsUserCanJoin = foucsUserCanJoin;
    }

    public String getBindingMobileCanJoin() {
        return bindingMobileCanJoin;
    }

    public void setBindingMobileCanJoin(String bindingMobileCanJoin) {
        this.bindingMobileCanJoin = bindingMobileCanJoin;
    }

    public Integer getNumPerDay() {
        return numPerDay;
    }

    public void setNumPerDay(Integer numPerDay) {
        this.numPerDay = numPerDay;
    }

    public String getPrizeStatus() {
        return prizeStatus;
    }

    public void setPrizeStatus(String prizeStatus) {
        this.prizeStatus = prizeStatus;
    }

    public Integer getJoinNumLimit() {
        return joinNumLimit;
    }

    public void setJoinNumLimit(Integer joinNumLimit) {
        this.joinNumLimit = joinNumLimit;
    }

    public String getJwid() {
        return jwid;
    }

    public void setJwid(String jwid) {
        this.jwid = jwid;
    }

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", title=").append(title);
        sb.append(", starttime=").append(starttime);
        sb.append(", endtime=").append(endtime);
        sb.append(", banner=").append(banner);
        sb.append(", count=").append(count);
        sb.append(", hdurl=").append(hdurl);
        sb.append(", shortUrl=").append(shortUrl);
        sb.append(", foucsUserCanJoin=").append(foucsUserCanJoin);
        sb.append(", bindingMobileCanJoin=").append(bindingMobileCanJoin);
        sb.append(", numPerDay=").append(numPerDay);
        sb.append(", prizeStatus=").append(prizeStatus);
        sb.append(", joinNumLimit=").append(joinNumLimit);
        sb.append(", jwid=").append(jwid);
        sb.append(", projectCode=").append(projectCode);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", description=").append(description);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WechatMpActJiugongge other = (WechatMpActJiugongge) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getStarttime() == null ? other.getStarttime() == null : this.getStarttime().equals(other.getStarttime()))
            && (this.getEndtime() == null ? other.getEndtime() == null : this.getEndtime().equals(other.getEndtime()))
            && (this.getBanner() == null ? other.getBanner() == null : this.getBanner().equals(other.getBanner()))
            && (this.getCount() == null ? other.getCount() == null : this.getCount().equals(other.getCount()))
            && (this.getHdurl() == null ? other.getHdurl() == null : this.getHdurl().equals(other.getHdurl()))
            && (this.getShortUrl() == null ? other.getShortUrl() == null : this.getShortUrl().equals(other.getShortUrl()))
            && (this.getFoucsUserCanJoin() == null ? other.getFoucsUserCanJoin() == null : this.getFoucsUserCanJoin().equals(other.getFoucsUserCanJoin()))
            && (this.getBindingMobileCanJoin() == null ? other.getBindingMobileCanJoin() == null : this.getBindingMobileCanJoin().equals(other.getBindingMobileCanJoin()))
            && (this.getNumPerDay() == null ? other.getNumPerDay() == null : this.getNumPerDay().equals(other.getNumPerDay()))
            && (this.getPrizeStatus() == null ? other.getPrizeStatus() == null : this.getPrizeStatus().equals(other.getPrizeStatus()))
            && (this.getJoinNumLimit() == null ? other.getJoinNumLimit() == null : this.getJoinNumLimit().equals(other.getJoinNumLimit()))
            && (this.getJwid() == null ? other.getJwid() == null : this.getJwid().equals(other.getJwid()))
            && (this.getProjectCode() == null ? other.getProjectCode() == null : this.getProjectCode().equals(other.getProjectCode()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getStarttime() == null) ? 0 : getStarttime().hashCode());
        result = prime * result + ((getEndtime() == null) ? 0 : getEndtime().hashCode());
        result = prime * result + ((getBanner() == null) ? 0 : getBanner().hashCode());
        result = prime * result + ((getCount() == null) ? 0 : getCount().hashCode());
        result = prime * result + ((getHdurl() == null) ? 0 : getHdurl().hashCode());
        result = prime * result + ((getShortUrl() == null) ? 0 : getShortUrl().hashCode());
        result = prime * result + ((getFoucsUserCanJoin() == null) ? 0 : getFoucsUserCanJoin().hashCode());
        result = prime * result + ((getBindingMobileCanJoin() == null) ? 0 : getBindingMobileCanJoin().hashCode());
        result = prime * result + ((getNumPerDay() == null) ? 0 : getNumPerDay().hashCode());
        result = prime * result + ((getPrizeStatus() == null) ? 0 : getPrizeStatus().hashCode());
        result = prime * result + ((getJoinNumLimit() == null) ? 0 : getJoinNumLimit().hashCode());
        result = prime * result + ((getJwid() == null) ? 0 : getJwid().hashCode());
        result = prime * result + ((getProjectCode() == null) ? 0 : getProjectCode().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        return result;
    }
}